<?php
/**
 * Template Name: Páginas Gerais
 *
 */
?>

 <?php get_header() ?>


<!-- https://codex.wordpress.org/Custom_Headers -->
<img class="img-responsive" src="<?php header_image(); ?>" height="<?php echo get_custom_header()->height; ?>" width="<?php echo get_custom_header()->width; ?>" alt="" />


<div class="conteudo-wrapper">
  <main>

    <div class="conteudo container">

        <?php 
              // se tiver algum post publicado, executar
              if(have_posts()) :
                /// enquanto houver algum post, chame o post de determinada maneira
                while (have_posts()) : the_post();
            
            ?>

            <!-- Chamada aqui de determinada forma -->
            <h1><?php the_title(); ?></h1>
            <p>Autor <?php the_author(); ?></p>
            <p><?php the_content(); ?></p>

            <?php 
              endwhile;
            else:             
            ?>
              <p>Não tem nada ainda pra mostrar</p>

            <?php 
              endif;           
            ?>

      
                        
    </div>

  </main>
</div>

<?php get_footer() ?>

